package cn.test.activemq.spring.message.types;

/**
 * @author Han
 */
public enum Operation {
	SAVE(0,"新增"),
	DELETE(1,"删除"),
	UPDATE(2,"更新"),
	QUERY(4,"查询");
	private final Integer code;
	private final String description;
	private Operation(Integer code,String description){
		this.code = code;
		this.description = description;
	}
	public Integer getCode() {
		return code;
	}
	public String getDescription() {
		return description;
	}
	
	/*
	 *
	 */
	@Override
	public String toString() {
		return this.code+"."+this.description;
	}
}
